package sf.dsl.example;

import sf.database.dialect.DBDialect;
import sf.database.jdbc.sql.SQLParameter;

import java.util.List;

/**
 * dynamicTableName 动态表名
 */
public interface ITable {
    /**
     * dynamicTableName 为动态表名
     * @param sb
     * @param list
     * @param dialect
     */
    void toSql(StringBuilder sb, List<SQLParameter> list, DBDialect dialect);

    /**
     * @param sb
     * @param list
     * @param dialect
     */
    void toNoAliasSql(StringBuilder sb, List<SQLParameter> list, DBDialect dialect);

    void toOnlyAliasSql(StringBuilder sb, List<SQLParameter> list, DBDialect dialect);
}
